package com.yun.space.entity;


public class User {
	private Integer id;//主键
	private String realName;//真实名
	private String userName;//用户名
	private String password;//密码
	private int role;//权限
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getRealName() {
		return realName;
	}
	public void setRealName(String realName) {
		this.realName = realName;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public int getRole() {
		return role;
	}
	public void setRole(int role) {
		this.role = role;
	}
	@Override
	public String toString() {
		return "User [id=" + id + ", realName=" + realName + ", userName=" + userName + ", password=" + password
				+ ", role=" + role + "]";
	}
	public User(Integer id, String realName, String userName, String password, int role) {
		super();
		this.id = id;
		this.realName = realName;
		this.userName = userName;
		this.password = password;
		this.role = role;
	}
	public User() {
		super();
		// TODO Auto-generated constructor stub
	}

}